//
//  ShopBillTableViewCell.m
//  Findif
//
//  Created by Mac on 2019/5/7.
//  Copyright © 2019年 Cicel Chen. All rights reserved.
//

#import "ShopBillTableViewCell.h"

@implementation ShopBillTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
    }
    
    return self;
}


- (void)setModel:(BillModel *)model{
    
    _model = model;
    
    self.showLabel.text = [NSString stringWithFormat:@"%@",model.goods_order_no];
}

- (void)setupUI{
    
    self.backgroundColor = ZRWhiteColor;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    UILabel * showLabel = [[UILabel alloc] init];
    
    showLabel.font = [UIFont systemFontOfSize:14 * SCREENH6];
    showLabel.textColor = ZRBlackColor;
    
    self.showLabel = showLabel;
    
    [self.contentView addSubview:self.showLabel];
}


- (void)layoutSubviews{
    
    [self.showLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.mas_equalTo(self.contentView);
        make.centerY.mas_equalTo(self.contentView);
    }];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
